/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.business.account.core.repository.service;

import info.peigen.hotpot.business.account.core.repository.entity.AccountFreezeLogEntity;
import info.peigen.hotpot.business.account.core.repository.mapper.AccountFreezeLogMapper;
import info.peigen.hotpot.component.data.repository.beetlsql.service.AbstractBeetlSqlRepository;
import org.noear.solon.annotation.Component;

import java.util.List;

/**
 * <b>(AccountFreezeLogRepository)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2021/8/5
 */
@Component
public class AccountFreezeLogRepository extends AbstractBeetlSqlRepository<AccountFreezeLogMapper, AccountFreezeLogEntity> {
    public List<AccountFreezeLogEntity> findByAccountId(String accountId) {
        return getMapper().findByAccountId(accountId);
    }

    public void deleteByAccountId(String accountId) {
        getMapper().deleteByAccountId(accountId);
    }

    public void deleteByTradeId(String tradeId) {
        getMapper().deleteByTradeId(tradeId);
    }
}